package org.springframework;

import org.springframework.component.TestBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * 基于系统文件下 xml 构建 spring 容器
 * */
public class FileSystemXmlApplicationContextDemo {

	private static void test2(){
		ApplicationContext context = new FileSystemXmlApplicationContext("file:C:\\Users\\admin\\Desktop\\config.xml");
		TestBean bean = context.getBean(TestBean.class);
		bean.helloSpring();
	}
}
